package org.company.box.managedBean;

import java.io.Serializable;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.bean.ViewScoped;

import org.company.box.bo.EmpleadosBO;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

@Controller
@Scope("session")
public class RichBean implements Serializable {

    private static final long serialVersionUID = -6239437588285327644L;

    @Resource
    private EmpleadosBO empleadosBO;

    private String name;

    @PostConstruct
    public void postContruct() {
        name = "John";
    }

    public String getName() {
    	empleadosBO.listAll();
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

	public EmpleadosBO getEmpleadosBO() {
		return empleadosBO;
	}

	public void setEmpleadosBO(EmpleadosBO empleadosBO) {
		this.empleadosBO = empleadosBO;
	}
    
    
    
}